home *** CD-ROM | disk | FTP | other *** search
/ Virtual Sex Shoot / Virtual Sex Shoot.iso / mac / Virtual Sex Shoot / Virtual Sex Shoot.DXR / 00126.ls < prev    next >
Encoding:
Text File  |  1995-09-24  |  18.2 KB  |  674 lines

  1. global gAutoInUse, gOldMovie, gWhichMovie, gOldClip, gWhichClip, gVR, gMarkers, gMovieSprite, gWhichCamera, gPanoMovieID, gReturning, gFloatingSprite, gAutomated, gRecording, gPlaying, gStaring, gMoviePauseState, gFullScreen, gSliderSprite, gCode, gWeapon, gOldWhichMovie, gOldWhichClip, gLoadedTimeCodes, gDontMessWithTheSlider, gStopTime, gStartTime, gDontReturnTo0, gVR.NodeID, gVR.HPanAngle, gVR.VPanAngle, gVR.ZoomAngle, gVR.Quality
  2.  
  3. on cameraBoolean
  4.   if gFullScreen = 0 then
  5.     if gAutomated = 0 then
  6.       if gAutoInUse = 0 then
  7.         return 1
  8.         exit
  9.       end if
  10.     end if
  11.   end if
  12.   return 0
  13. end
  14.  
  15. on updateCamera
  16.   puppetSprite(gFloatingSprite, 1)
  17.   removeFloating()
  18.   if cameraBoolean() = 1 then
  19.     if gVR = 0 then
  20.       activate(3, "typeA", 1, 0, 463, 239, EMPTY, EMPTY, EMPTY)
  21.       activate(4, "typeB", 1, 0, 574, 242, EMPTY, EMPTY, EMPTY)
  22.       if gWhichCamera = "A" then
  23.         activate(gFloatingSprite, "typeA!", 1, 0, 463, 239, EMPTY, EMPTY, EMPTY)
  24.       else
  25.         activate(gFloatingSprite, "typeB!", 1, 0, 574, 242, EMPTY, EMPTY, EMPTY)
  26.       end if
  27.     else
  28.       activate(3, "typeA.vr", 1, 0, 465, 241, EMPTY, EMPTY, EMPTY)
  29.       activate(4, "typeB.vr", 1, 0, 576, 244, EMPTY, EMPTY, EMPTY)
  30.       if gWhichCamera = "A" then
  31.         activate(gFloatingSprite, "typeA.vr!", 1, 0, 465, 241, EMPTY, EMPTY, EMPTY)
  32.       else
  33.         activate(gFloatingSprite, "typeB.vr!", 1, 0, 576, 244, EMPTY, EMPTY, EMPTY)
  34.       end if
  35.     end if
  36.     setProp(3, 4, "visibility", 1)
  37.     set the visible of sprite gFloatingSprite to 1
  38.   else
  39.     setProp(3, 4, "visibility", 0)
  40.     set the visible of sprite gFloatingSprite to 0
  41.   end if
  42.   updateStage()
  43. end
  44.  
  45. on removeFloating
  46.   set the locV of sprite gFloatingSprite to -500
  47.   updateStage()
  48.   deactivate([gFloatingSprite])
  49.   set the visible of sprite gFloatingSprite to 0
  50.   updateStage()
  51. end
  52.  
  53. on legalButton whichSprite, maintainScript
  54.   repeat while the mouseDown
  55.     nothing()
  56.   end repeat
  57.   if maintainScript <> 1 then
  58.     set the timeoutScript to "nothing"
  59.   end if
  60.   return 1
  61. end
  62.  
  63. on selectGirl whichSprite
  64.   restoreControl()
  65.   set gAutomated to 0
  66.   flashQD(whichSprite)
  67.   set whichGirl to whichSprite - 17
  68.   set gOldMovie to gWhichMovie
  69.   set gWhichMovie to whichGirl
  70.   puppetSprite(gFloatingSprite, 1)
  71.   set the visible of sprite 32 to 1
  72.   puppetSprite(32, 0)
  73.   puppetSprite(33, 0)
  74.   puppetSprite(34, 0)
  75.   set gStaring to 0
  76.   advanceClip(1)
  77.   updateCamera()
  78. end
  79.  
  80. on selectClip whichSprite
  81.   restoreControl()
  82.   set gAutomated to 0
  83.   flashQD(whichSprite)
  84.   set whichClip to whichSprite - 23
  85.   set the visible of sprite 32 to 1
  86.   set gStaring to 0
  87.   advanceClip(whichClip)
  88.   updateCamera()
  89. end
  90.  
  91. on selectCode whichSprite
  92.   if voidp(gWeapon) then
  93.     exit
  94.   end if
  95.   set whichCode to whichSprite - 26
  96.   if voidp(gCode) then
  97.     set gCode to []
  98.   end if
  99.   set the castNum of sprite 26 to the number of cast ("Code" & whichCode)
  100.   updateStage()
  101.   delayFor(10)
  102.   append(gCode, whichCode)
  103.   set theCount to count(gCode)
  104.   if theCount < 5 then
  105.     exit
  106.   else
  107.     if theCount > 5 then
  108.       set newCode to [getAt(gCode, theCount - 4)]
  109.       append(newCode, getAt(gCode, theCount - 3))
  110.       append(newCode, getAt(gCode, theCount - 2))
  111.       append(newCode, getAt(gCode, theCount - 1))
  112.       append(newCode, getAt(gCode, theCount))
  113.       set gCode to newCode
  114.     end if
  115.   end if
  116.   if gWeapon = 1 then
  117.     if gCode = [1, 3, 3, 2, 2] then
  118.       set gWhichCamera to "A"
  119.       setProp(23, 24, "visibility", 0)
  120.       setProp(26, 29, "visibility", 0)
  121.       go("vr.2")
  122.       set gPlaying to 1
  123.       exit
  124.     end if
  125.   else
  126.     if gWeapon = 2 then
  127.       if (gCode = [3, 1, 2, 1, 1]) or (gCode = [3, 3, 1, 2, 3]) then
  128.         set gWhichCamera to "A"
  129.         setProp(23, 24, "visibility", 0)
  130.         setProp(26, 29, "visibility", 0)
  131.         go("vr.3")
  132.         set gPlaying to 1
  133.         exit
  134.       end if
  135.     end if
  136.   end if
  137.   go("Access Denied")
  138. end
  139.  
  140. on selectWeapon whichSprite
  141.   sound stop 1
  142.   sound stop 2
  143.   if whichSprite = 23 then
  144.     set gWeapon to 1
  145.     set gWhichMovie to 2
  146.     set the ink of sprite 23 to 4
  147.     set the ink of sprite 24 to 0
  148.   else
  149.     set gWeapon to 2
  150.     set gWhichMovie to 3
  151.     set the ink of sprite 23 to 0
  152.     set the ink of sprite 24 to 4
  153.   end if
  154.   updateStage()
  155.   delayFor(10)
  156.   set gCode to []
  157.   go("Code" & whichSprite)
  158. end
  159.  
  160. on flashQD whichSprite
  161.   storeStopTime(the movieTime of sprite gMovieSprite)
  162.   set gMoviePauseState to the movieRate of sprite gMovieSprite
  163.   setProp(18, 21, "puppet", 0)
  164.   setProp(24, 29, "puppet", 0)
  165.   go(the frame)
  166.   puppetSprite(whichSprite, 1)
  167.   set the ink of sprite whichSprite to 4
  168.   updateStage()
  169. end
  170.  
  171. on delayFor howLong, interruptible
  172.   set howLong to howLong + the timer
  173.   repeat while the timer < howLong
  174.     if interruptible = 1 then
  175.       if developersKey() = 1 then
  176.         exit repeat
  177.       end if
  178.       next repeat
  179.     end if
  180.     nothing()
  181.   end repeat
  182. end
  183.  
  184. on advanceMarker whichMarker
  185.   if gVR = 0 then
  186.     set whichMarker to whichMarker + 1
  187.   else
  188.     set whichMarker to whichMarker - 9
  189.   end if
  190.   set whichMarker to checkRange(whichMarker, 1, count(gMarkers))
  191.   go(getAt(gMarkers, whichMarker))
  192. end
  193.  
  194. on advanceClip whichClip
  195.   set gWhichMovie to checkRange(gWhichMovie, 1, 4)
  196.   set numberOfClips to 0
  197.   do("set numberOfClips=value ( count ( gMovie" & gWhichMovie & "TimeCodes ))")
  198.   set gWhichClip to checkRange(whichClip, 1, numberOfClips)
  199.   cursor(4)
  200.   storeAndGo()
  201.   highlightSelection()
  202. end
  203.  
  204. on randomClip
  205.   set the movieRate of sprite gMovieSprite to 0
  206.   updateStage()
  207.   storeStopTime(the movieTime of sprite gMovieSprite)
  208.   set gWhichMovie to random(4)
  209.   set numberOfClips to 0
  210.   do("set numberOfClips=value ( count ( gMovie" & gWhichMovie & "TimeCodes ))")
  211.   set gOldClip to gWhichClip
  212.   repeat while gOldClip = gWhichClip
  213.     set gWhichClip to random(numberOfClips)
  214.   end repeat
  215.   if random(2) = 1 then
  216.     set gWhichCamera to "A"
  217.   else
  218.     set gWhichCamera to "B"
  219.   end if
  220.   storeAndGo(1)
  221.   set the timeoutLength to 240 + (random(5) * 60)
  222.   set randomMovieTime to gStopTime - gStartTime - the timeoutLength - 60
  223.   set randomMovieTime to checkRange(randomMovieTime, 1, randomMovieTime)
  224.   set randomMovieTime to random(randomMovieTime) + gStartTime
  225.   set randomMovieTime to checkRange(randomMovieTime, gStartTime, gStopTime - the timeoutLength)
  226.   set the movieTime of sprite gMovieSprite to randomMovieTime
  227.   set the timeoutLapsed to 0
  228.   updateStage()
  229. end
  230.  
  231. on restoreControl
  232.   if gVR = 0 then
  233.     if gAutoInUse = 1 then
  234.       set the timeoutScript to "nothing"
  235.       restore([3, 4, 11, 12, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38])
  236.       setProp(3, 4, "puppet", 0)
  237.       setProp(17, 29, "puppet", 0)
  238.       set the loc of sprite 31 to point(219, 315)
  239.       set the loc of sprite 32 to point(66, 315)
  240.       set the loc of sprite 33 to point(94, 315)
  241.       set the loc of sprite 34 to point(372, 315)
  242.       set the loc of sprite 35 to point(122, 314)
  243.       set the loc of sprite 36 to point(344, 314)
  244.       set the loc of sprite 37 to point(133, 314)
  245.       swapPlaybackScreen("playback dot")
  246.       updateCamera()
  247.       set gAutoInUse to 0
  248.     end if
  249.   end if
  250. end
  251.  
  252. on autoButton whichButton
  253.   if legalButton(whichButton) then
  254.     set gAutomated to 0
  255.     set gPlaying to 1
  256.     set the timeoutScript to "randomClip"
  257.     set gAutoInUse to 1
  258.     if whichButton < 48 then
  259.       store([3, 4, 11, 12, gFloatingSprite, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38])
  260.     end if
  261.     setProp(3, 4, "puppet", 1)
  262.     setProp(3, 4, "locV", -500)
  263.     puppetSprite(gFloatingSprite, 1)
  264.     set the locV of sprite gFloatingSprite to -500
  265.     setProp(11, 12, "visibility", 0)
  266.     setProp(17, 39, "puppet", 1)
  267.     setProp(17, 39, "locV", -500)
  268.     swapPlaybackScreen("auto playback ")
  269.     randomClip()
  270.   end if
  271. end
  272.  
  273. on newButton whichButton
  274.   if legalButton(whichButton) then
  275.     restoreControl()
  276.     set gAutomated to 0
  277.     if the optionDown then
  278.       restoreTime()
  279.     else
  280.       resetTime()
  281.     end if
  282.     setProp(3, 4, "visibility", 0)
  283.     removeFloating()
  284.     setProp(17, 21, "puppet", 0)
  285.     setProp(23, 29, "puppet", 0)
  286.     setProp(17, 21, "visibility", 1)
  287.     setProp(23, 29, "visibility", 0)
  288.     setProp(11, 12, "visibility", 1)
  289.     setProp(31, 38, "visibility", 1)
  290.     set the puppet of sprite 32 to 0
  291.     set the visible of sprite 32 to 1
  292.     swapPlaybackScreen("playback dot")
  293.     set gWhichMovie to 1
  294.     set gWhichClip to 1
  295.     go(".00")
  296.     returnSlider()
  297.   end if
  298. end
  299.  
  300. on saveButton whichButton
  301.   if legalButton(whichButton, 1) then
  302.     set the movieRate of sprite gMovieSprite to 0
  303.     updateStage()
  304.     storeStopTime(the movieTime of sprite gMovieSprite)
  305.     set adjustedTimeCodes to sortTimeCodes()
  306.     if count(adjustedTimeCodes) > 0 then
  307.       writeDataFile(adjustedTimeCodes)
  308.     end if
  309.     storeStartTime(the movieTime of sprite gMovieSprite)
  310.     set the movieRate of sprite gMovieSprite to 1
  311.     updateStage()
  312.   end if
  313. end
  314.  
  315. on loadButton whichButton
  316.   if legalButton(whichButton, 1) then
  317.     if the type of sprite gMovieSprite > 0 then
  318.       set the movieRate of sprite gMovieSprite to 0
  319.       updateStage()
  320.     end if
  321.     readDataFile()
  322.     if gAutomated = 1 then
  323.       updateCamera()
  324.       restoreControl()
  325.       set gStaring to 0
  326.       returnSlider()
  327.       delayFor(30)
  328.       if gVR = 0 then
  329.         if the frame < label(".10") then
  330.           go(".10")
  331.         end if
  332.       end if
  333.       setProp(11, 12, "visibility", 0)
  334.       setProp(31, 37, "visibility", 1)
  335.       starButton(34)
  336.     end if
  337.   end if
  338. end
  339.  
  340. on fullScreenButton whichButton
  341.   if developersKey() then
  342.     checkClickOnMovieSprite(the left of sprite gMovieSprite, the right of sprite gMovieSprite)
  343.   else
  344.     set gFullScreen to 1
  345.     set puppet33 to the puppet of sprite 33
  346.     set puppet34 to the puppet of sprite 34
  347.     set the movieRate of sprite gMovieSprite to 0
  348.     updateStage()
  349.     store([gFloatingSprite])
  350.     setProp(3, 4, "locV", -500)
  351.     setProp(3, 4, "visibility", 0)
  352.     removeFloating()
  353.     updateStage()
  354.     setProp(1, gFloatingSprite, "puppet", 0)
  355.     setProp(17, 48, "puppet", 0)
  356.     if gAutoInUse = 1 then
  357.       set the visible of sprite 40 to 1
  358.     else
  359.       set the visible of sprite 40 to 0
  360.     end if
  361.     updateStage()
  362.     if gVR = 0 then
  363.       go("." & gWhichMovie & gFullScreen)
  364.     else
  365.       go("vr." & gWhichMovie & gFullScreen)
  366.     end if
  367.     go(the frame + 1)
  368.     puppetSprite(gSliderSprite, 1)
  369.     puppetSprite(32, not gRecording)
  370.     puppetSprite(33, puppet33)
  371.     puppetSprite(34, puppet34)
  372.     updateSlider()
  373.     set the movieRate of sprite gMovieSprite to gPlaying
  374.   end if
  375. end
  376.  
  377. on smallScreen whichButton
  378.   if developersKey() then
  379.     checkClickOnMovieSprite(the left of sprite gMovieSprite, the right of sprite gMovieSprite)
  380.   else
  381.     set gFullScreen to 0
  382.     set puppet33 to the puppet of sprite 33
  383.     set puppet34 to the puppet of sprite 34
  384.     restore([gFloatingSprite])
  385.     setProp(17, 48, "puppet", 0)
  386.     if gAutoInUse = 1 then
  387.       setProp(17, 48, "visibility", 0)
  388.     else
  389.       setProp(1, gFloatingSprite, "puppet", 0)
  390.     end if
  391.     advanceNewFrame()
  392.     puppetSprite(gSliderSprite, 1)
  393.     puppetSprite(32, not gRecording)
  394.     puppetSprite(33, puppet33)
  395.     puppetSprite(34, puppet34)
  396.     go(marker(1))
  397.     updateCamera()
  398.     set the movieTime of sprite gMovieSprite to the movieTime of sprite gMovieSprite
  399.     updateStage()
  400.     updateSlider()
  401.     set the movieRate of sprite gMovieSprite to gPlaying
  402.   end if
  403. end
  404.  
  405. on exitButton whichButton
  406.   if legalButton(whichButton) then
  407.     stopAllQT()
  408.     ClosePanoMovie()
  409.     CloseNavMovie()
  410.     restoreControl()
  411.     setProp(1, gFloatingSprite, "puppet", 0)
  412.     setProp(11, 12, "visibility", 1)
  413.     setProp(17, 48, "puppet", 0)
  414.     ClosePanoMovie()
  415.     CloseNavMovie()
  416.     go("Intro")
  417.     unLoad()
  418.     unLoadCast()
  419.     preLoadCast("WindLoop.AIF")
  420.     preLoadCast("MasturMu.AIF")
  421.     set gReturning to 1
  422.   end if
  423. end
  424.  
  425. on quitButton whichButton
  426.   if legalButton(whichButton) then
  427.     stopAllQT()
  428.     restoreControl()
  429.     setProp(1, gFloatingSprite, "puppet", 0)
  430.     setProp(11, 12, "visibility", 1)
  431.     setProp(17, 48, "puppet", 0)
  432.     go("Quit")
  433.   end if
  434. end
  435.  
  436. on vrButton whichButton
  437.   if legalButton(whichButton) then
  438.     ClosePanoMovie()
  439.     CloseNavMovie()
  440.     set gVR to 1
  441.     setProp(1, gFloatingSprite, "puppet", 0)
  442.     setProp(17, 48, "puppet", 0)
  443.     setProp(23, 24, "visibility", 0)
  444.     setProp(26, 29, "visibility", 0)
  445.     go("vr girl")
  446.   end if
  447. end
  448.  
  449. on toysButton whichButton
  450.   if legalButton(whichButton) then
  451.     ClosePanoMovie()
  452.     CloseNavMovie()
  453.     set oldVis to the visible of sprite 23
  454.     setProp(23, 24, "visibility", not oldVis)
  455.     setProp(26, 29, "visibility", not oldVis)
  456.     go(the frame - 1)
  457.     go(the frame + 1)
  458.   end if
  459. end
  460.  
  461. on blankButton whichButton
  462.   if legalButton(whichButton) then
  463.     nothing()
  464.   end if
  465. end
  466.  
  467. on recordButton whichButton
  468.   if legalButton(whichButton) then
  469.     puppetSprite(whichButton, gRecording)
  470.     set gRecording to not gRecording
  471.     set the castNum of sprite whichButton to the number of cast ("recordButton, " & gRecording)
  472.     if gRecording = 1 then
  473.       storeStartTime(the movieTime of sprite gMovieSprite)
  474.     else
  475.       storeStopTime(the movieTime of sprite gMovieSprite)
  476.     end if
  477.   end if
  478.   setProp(11, 12, "visibility", 1)
  479.   set the visible of sprite 34 to 1
  480.   updateStage()
  481. end
  482.  
  483. on playButton whichButton
  484.   if legalButton(whichButton) then
  485.     if QT(gMovieSprite) then
  486.       puppetSprite(whichButton, gPlaying)
  487.       set gPlaying to not gPlaying
  488.       puppetSprite(whichButton + 1, 1)
  489.       set the visible of sprite (whichButton - 1) to not gAutomated
  490.       set the castNum of sprite whichButton to the number of cast ("playButton, " & gPlaying)
  491.       if gVR = 0 then
  492.         set the castNum of sprite (whichButton + 1) to the number of cast "starButton, 0"
  493.       end if
  494.       set the movieRate of sprite gMovieSprite to 0
  495.       updateStage()
  496.       if gPlaying = 1 then
  497.         if gStaring > 0 then
  498.           set gStaring to 0
  499.           set gAutomated to 0
  500.           set gOldWhichMovie to gWhichMovie
  501.           set gOldWhichClip to gWhichClip
  502.           setProp(11, 12, "visibility", 1)
  503.           setProp(17, 21, "visibility", 1)
  504.           setProp(23, 29, "visibility", 0)
  505.           updateCamera()
  506.           setProp(3, 4, "visibility", 1)
  507.           setProp(13, gFloatingSprite, "visibility", 1)
  508.           set gDontReturnTo0 to 1
  509.           advanceClip(gWhichClip)
  510.         end if
  511.       else
  512.         if gStaring > 0 then
  513.           set gStaring to gStaring + 1
  514.         end if
  515.       end if
  516.       set the movieRate of sprite gMovieSprite to 1
  517.       updateStage()
  518.     end if
  519.   end if
  520. end
  521.  
  522. on starButton whichButton
  523.   if legalButton(whichButton) then
  524.     if QT(gMovieSprite) then
  525.       if gRecording = 1 then
  526.         storeStopTime(the movieTime of sprite gMovieSprite)
  527.       end if
  528.       set adjustedTimeCodes to sortTimeCodes()
  529.       if count(adjustedTimeCodes) = 0 then
  530.         set adjustedTimeCodes to gLoadedTimeCodes
  531.         if count(adjustedTimeCodes) = 0 then
  532.           exit
  533.         end if
  534.       end if
  535.       set gAutomated to 1
  536.       setProp(11, 12, "visibility", 0)
  537.       if gStaring < 1 then
  538.         returnSlider()
  539.         updateStage()
  540.         set gDontMessWithTheSlider to 1
  541.         checkClickOnMovieSprite(133, 133)
  542.         set gDontMessWithTheSlider to 0
  543.       end if
  544.       set the movieRate of sprite gMovieSprite to 0
  545.       updateStage()
  546.       setStar(whichButton)
  547.       set starPlay to the result
  548.       set the timeoutScript to "nothing"
  549.       if gStaring = 1 then
  550.         set gOldWhichMovie to gWhichMovie
  551.         set gOldWhichClip to gWhichClip
  552.         if adjustedTimeCodes <> gLoadedTimeCodes then
  553.           set gAutomated to 0
  554.         end if
  555.         if the locH of sprite gSliderSprite > 133 then
  556.           returnSlider()
  557.         end if
  558.         set adjustedTimeCodes to sortTimeCodes()
  559.         if checkTimeCodes(adjustedTimeCodes) = 0 then
  560.           nothing()
  561.         else
  562.           set gAutomated to 1
  563.           set gWhichAutomatedClip to 1
  564.           correlateSliderPositionsToMovieTime()
  565.           set gAutomatedTimes to []
  566.           advanceAutomatedMovie()
  567.           set the movieTime of sprite gMovieSprite to gStartTime
  568.         end if
  569.       else
  570.         if the movieRate of sprite gMovieSprite = 0 then
  571.           set the movieRate of sprite gMovieSprite to 1
  572.           updateStage()
  573.         else
  574.           storeStartTime(the movieTime of sprite gMovieSprite)
  575.         end if
  576.       end if
  577.       updateCamera()
  578.     end if
  579.   end if
  580. end
  581.  
  582. on setStar whichButton
  583.   set gRecording to 0
  584.   set gStaring to gStaring + 1
  585.   set starPlay to (gStaring mod 2) = 0
  586.   set gPlaying to not starPlay
  587.   puppetSprite(whichButton - 1, 1)
  588.   puppetSprite(whichButton, starPlay)
  589.   set the visible of sprite (whichButton - 2) to not gStaring
  590.   set the castNum of sprite (whichButton - 1) to the number of cast "playButton, 0"
  591.   set the castNum of sprite whichButton to the number of cast ("starButton, " & starPlay)
  592.   return starPlay
  593. end
  594.  
  595. on returnSlider
  596.   set sliderLoc to the locH of sprite gSliderSprite
  597.   if gFullScreen = 0 then
  598.     set minH to 133
  599.   else
  600.     set minH to 234
  601.   end if
  602.   repeat with x = sliderLoc down to minH
  603.     set x to x - 10
  604.     if x < minH then
  605.       set x to minH
  606.     end if
  607.     set the locH of sprite gSliderSprite to x
  608.     updateStage()
  609.   end repeat
  610. end
  611.  
  612. on swingPyramid
  613.   SwingPanoMovie("4.799", "0", "44.0", 3, 1, "0")
  614. end
  615.  
  616. on swingShip
  617.   SwingPanoMovie("1", "0", "44.0", 3, 1, "0")
  618. end
  619.  
  620. on jumpIntroWindows
  621.   reconcileText()
  622.   if gPanoMovieID <> EMPTY then
  623.     set gVR.NodeID to "33"
  624.     SetPanoNode(gVR.NodeID, 0)
  625.   end if
  626.   set gVR.HPanAngle to "0"
  627.   set gVR.VPanAngle to "0"
  628.   set gVR.ZoomAngle to "44.0"
  629.   set gVR.Quality to "0"
  630.   SetPanoMovieView(gVR.HPanAngle, gVR.VPanAngle, gVR.ZoomAngle, gVR.Quality)
  631. end
  632.  
  633. on jumpPyramid
  634.   reconcileText()
  635.   if gPanoMovieID <> EMPTY then
  636.     set gVR.NodeID to "38"
  637.     SetPanoNode(gVR.NodeID, 0)
  638.   end if
  639.   set gVR.HPanAngle to "4.799"
  640.   set gVR.VPanAngle to "0"
  641.   set gVR.ZoomAngle to "44.0"
  642.   set gVR.Quality to "0"
  643.   SetPanoMovieView(gVR.HPanAngle, gVR.VPanAngle, gVR.ZoomAngle, gVR.Quality)
  644. end
  645.  
  646. on jumpShip
  647.   reconcileText()
  648.   if gPanoMovieID <> EMPTY then
  649.     set gVR.NodeID to "69"
  650.     SetPanoNode(gVR.NodeID, 0)
  651.   end if
  652.   set gVR.HPanAngle to "0"
  653.   set gVR.VPanAngle to "0"
  654.   set gVR.ZoomAngle to "44.0"
  655.   set gVR.Quality to "0"
  656.   SetPanoMovieView(gVR.HPanAngle, gVR.VPanAngle, gVR.ZoomAngle, gVR.Quality)
  657. end
  658.  
  659. on lookBeforeYouLeap
  660.   if gVR = 0 then
  661.     jumpPyramid()
  662.   else
  663.     jumpShip()
  664.   end if
  665. end
  666.  
  667. on huntvr
  668.   repeat with x = 1 to 2000
  669.     if the castType of cast x = #text then
  670.       put the name of cast x
  671.     end if
  672.   end repeat
  673. end
  674.